<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //is()比较两个值严格相等,类似===
        console.log(NaN===NaN);
        
        console.log(Object.is(NaN,NaN));
        console.log(Object.is(123,"123"));
        
        //assign()对象合并
        const all = {};
        const obj1={
            name:"张三",
            age:10
        }
        const obj2 = {
            sex:"男"
        }

        Object.assign(all,obj1,obj2)

        console.log(all);
    </script>
</body>
</html>